﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using STX.Domain;
using STX.Lib.Caching;

namespace STX.Service
{
    public class TopicService:BaseService<STX.Domain.TabTopic>
    {
        

        public DateTime Test()
        {
            var dt = CacheProvider.Get<DateTime>("now");
            if (!CacheProvider.IsSet("now") || dt == default(DateTime))
            {
                dt = DateTime.Now;
                CacheProvider.Set("now", dt, 2);
            }
            return dt;
        }

        public override bool Update(TabTopic entity)
        {
            throw new NotImplementedException();
        }
    }
}
